package com.gdzn.netty.enums;

/**
 * 发送消息类型的枚举
 *
 * @author zhangliuning
 */
public enum MsgActionEnum {

    CONNECT("connect", "第一次(或重连)初始化连接"),
    STATION_LOGIN("stationLogin", "诊台登录"),
    HEARTBEAT("heartbeat", "客户端保持心跳"),
    DOCTOR_SCAN("doctorScan", "专家扫码成功正在登录"),
    DOCTOR_LOGIN("doctorLogin", "专家登录成功"),
    PATIENT_SCAN("patientScan", "患者扫码成功正在登录"),
    PATIENT_LOGIN("patientLogin", "患者登录且已经实名认证"),
    PATIENT_LOGINAUTH("patientLoginAuth", "患者登录但未实名认证"),
    DOCTOR_LOGOUT("doctorLogout", "专家退出"),
    PATIENT_LOGOUT("patientLogout", "患者退出");

    public final String action;
    public final String content;

    MsgActionEnum(String action, String content) {
        this.action = action;
        this.content = content;
    }

    public String getAction() {
        return action;
    }
}